package gaml.java.serializer.collection;

import gaml.error.GamlException;
import gaml.java.ClassSerializerStore;

import java.util.Hashtable;


/**
 * get data from hashtable and put it into mapping node
 * get data from special mapping node and put into hashtable
 * @author shnireck
 *
 */
public class HashtableSerializer extends MapSerializer <Hashtable <Object, Object>> {
	
	public HashtableSerializer (ClassSerializerStore store) { super (store); }

	@Override
	public Hashtable <Object, Object> createObject () throws GamlException { return new Hashtable <Object, Object> (); }

	@Override
	public Class <Hashtable <Object, Object>> getObjectClass () { return (Class <Hashtable <Object, Object>>) new Hashtable <Object, Object> ().getClass (); }
}
